{include file="./headStart.tpl"}
<script type="text/javascript">
$(function() {
  enable_cb();
  $("input:checkbox").click(enable_cb);
});

function enable_cb() {
  if (this.checked) {
    $("input:checkbox").attr("disabled", true);
    $(this).attr("disabled", false);
  } else {
    $("input:checkbox").attr("disabled", false);
  }
}
function checkTechCmp(theObj)
{
  var checkedId   = $(theObj).val();
  var checkStatus = $(theObj).prev().val();
  
  if(checkStatus == 'Y')
  {
    $("#checkBtn").hide("slow");
  }
  else
  {
    $("#checkBtn").show("slow");
  }
}
function checkTechNew(theObj)
{
  var checkedId   = $(theObj).val();
  var checkStatus = $(theObj).prev().val();
  
  if(checkStatus == 'Y')
  {
    $("#checkBtnNew").hide("slow");
  }
  else
  {
    $("#checkBtnNew").show("slow");
  }
}
function checkTechOther(theObj)
{
  var checkedId   = $(theObj).val();
  var checkStatus = $(theObj).prev().val();
  
  if(checkStatus == 'Y')
  {
    $("#checkBtnOther").hide("slow");
  }
  else
  {
    $("#checkBtnOther").show("slow");
  }
}
</script>
{include file="./headEnd.tpl"}
<form name="form1" action="{$smarty.server.PHP_SELF}" method="GET">
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="right">
    From Date :
    {html_select_date prefix="fromDate" start_year="-1" end_year="+5" field_order="DMY" month_format="%m" time="$fromDate"}   
  </td>
  <td class="table1" align="right">
    To Date :
    {html_select_date prefix="toDate" start_year="-1" end_year="+5" field_order="DMY" month_format="%m"}   
  </td>
  <td class="table2">
    <input type="submit" name="submitDateBtn" value="GO..." class="button" />
  </td>  
</tr>		
</table>
</form>

<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="8"><font style="font-size: 16px"><b> Pending R & R List </b></font></td>
</tr>
<tr>
	<td class="table1" align='center'><B>Sr No.</B></td>
	<td class="table1" align='center'><B>Customer</B></td>
	<td class="table1" align='center'><B>Complaint Date</B></td>
	<td class="table1" align='center'><B>Target Date </B></td>
	<td class="table1" align='center'><B>Send For Repair</B></td>
	<td class="table1" align='center'><B>Address</B></td>	
	<td class="table1" align='center'><B>Close Date</B></td>
	<td class="table1" align='center'><B>Print</B></td>
</tr>
{section name=sec loop=$productArray}
</tr>
	<td class="table3" align='center'>{$productArray[sec].srNo}</td>
	<td class="table3" align='left'>{$productArray[sec].companyName}</td>
	<td class="table3" align='center'><font size="1">{$productArray[sec].complaintDate}</font></td>
	<td class="table3" align='center'><font size="1">{$productArray[sec].targetDate}</font></td>
	<td class="table3" align='left'>{$productArray[sec].supplier}</td>
	<td class="table3" align='left'><font size="1">{$productArray[sec].address}</font></td>	
	<td class="table3" align='right'>{$productArray[sec].closeDate}</td>
	<td class="table3" align='center'>
		<a href="changeStatusRnR.php?rAndRMasterId={$productArray[sec].rAndRMasterId}&print=1" class="link" title="Click to update status of this call">
			Print
		</a>
	</td>
</tr>
{/section}
</table>
{include file="footer.tpl"}